#pragma once
#include <Windows.h>
#include "timemanage.h"
#include <string>
#include <vector>
using namespace std;

class LogElement {
public:
	string startTime;
	string endTime;
	AUTH_TYPE type;
};
typedef vector<LogElement>::iterator iter_log;

class LogViewer
{
public:
	static LogViewer* getInstance();

	DWORD show(HWND hParent);
	INT_PTR wndProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);

private:
	static LogViewer *instance;

	LogViewer(void);
	~LogViewer(void);

	void getLog();
	void initList();
	void clearList();

	HWND hDlg;
	HWND hList;
};

